package com.jzlin.funhub.admin.model.resp;

import cn.hutool.core.bean.BeanUtil;
import com.jzlin.funhub.admin.model.entity.SysUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户登录返回.
 *
 * @author linjz
 * @since 2025/7/11
 */
@Data
@ApiModel
public class UserLoginResp {
    @ApiModelProperty("用户id")
    private Long id;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户头像")
    private String avatar;

    public UserLoginResp(SysUser sysUser) {
        BeanUtil.copyProperties(sysUser, this);
    }
}
